<?php
    header('Content-Type:text/html;charset=utf-8');

        /*json字符串*/

        $jsonFormJSON = file_get_contents('data.json');

        /*把json字符串解析php对象*/
        $jsonObject = json_decode($jsonFormJSON);

        echo $jsonObject;
?>    